package com.tpshion.deploy.task;

import com.tpshion.deploy.common.constant.TaskType;
import com.tpshion.deploy.task.support.TaskData;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DeployTaskHandler extends AbstartTaskHandler{

    @Override
    public TaskType getTaskType() {
        return TaskType.DEPLOY;
    }

    @Override
    public void handleTask(TaskData taskData) {
        log.info("handleTask taskData:{}", taskData);
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
